/**
 * @author      OA Wu <comdan66@gmail.com>
 * @copyright   Copyright (c) 2015 OA Wu Design
 */

@mixin a ($color: rgba(42, 90, 149, 0.7), $hoverColor: rgba(12, 65, 109, .85), $underLine: true) {
  display: inline-block;
  color: $color;
  font-weight: bold;
  text-decoration: none;
  @include transition(all .3s);

  @if $underLine == true {
    border-bottom: 1px solid transparent;
  }
  &.active, &:hover {
    color: $hoverColor;
    @if $underLine == true {
      border-bottom: 1px solid $hoverColor;
    }
  }
  @content;
}